package com.mall.user.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("admin")
public class Admin {
    
    @TableId(type = IdType.AUTO)
    private Integer aid;
    
    private String username;
    
    private String name;
    
    @TableField("id_num")
    private String idNum;
    
    private String phone;
    
    private String password;
    
    private String email;
    
    private String avatar;
    
    private String gender;
    
    private LocalDate birthday;
    
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    @TableField("updated_at")
    private LocalDateTime updatedAt;
    
    @TableLogic
    @TableField("is_deleted")
    private Boolean isDeleted;
    
    @TableField("deleted_at")
    private LocalDateTime deletedAt;
}